<div class="content-titulo">
    <div class="filtro">
        <form id="form_filtro" method="get" action="">
            <i>Filtrar</i>
            
            <input type="text" name="dscfiltro" value="<?php echo $this->dscfiltro; ?>" placeholder="Categoria" />
            
            <input type="submit" class="btn-pdr" name="buscar" value="buscar" />
        </form>
    </div>
    
    
    <div class="content-btn">
        <a href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit')); ?>">+</a>
    </div>
    
    <h2><?php echo $this->titulo;?></h2>
</div>


<div class="content-list">
    
<?php foreach ($this->result as $row) { 
    //$cts = $row->findDependentRowSet("Sistema_Model_DbTable_Catsegmento");
?>
    <div class="item" style="height:100px">    
        <div class="col" style="width: 150px">
            <p><strong>Código: <?php echo $row['CAT_ID']; ?></strong></p>
            <p><strong>Título: </strong><?php echo $row['CAT_NOM']; ?></p>
            <p><strong>Status: </strong><?php echo tools::returnStatus($row['CAT_STA']); ?></p>
        </div>
        <div class="col" style="width: 200px">
            <p><strong>Segmento: </strong><?php echo $row['CTS_NOM']; ?></p>
        </div>
        
        <div class="col" style="width: 150px">
            
        </div>
        
        <div class="btn-actions" style="padding-top: 10px;">
            <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit', 'id' => $row['CAT_ID'])); ?>">Editar</a><?php }?>
            <?php if($row->CAT_STA == 0 && $this->per_del){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'delete','id' => $row['CAT_ID'])); ?>">Deletar</a><?php }?>
        </div>
      
    </div>
    <?php } ?>
</div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>
